<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping package="cn.firstsoft.modules.integration.domain">
    <class name="IntegratMessageConf" table="Integrat_Message_Conf">
        <id name="id" type="integer">
            <column name="id" />
            <generator class="native" >
				<param name="sequence">INTEGRAT_MESSAGE_CONF_ID_SEQ</param>
            </generator>
        </id>
		<property type="string" name="messageType">
			<column name="message_type" length="20"/>
		</property>
		<property type="string" name="messageContent">
			<column name="message_content" length="20" />
		</property>
		<!-- property type="string" name="integratMessageSobs">
			<column name="integrat_message_sobs" length="300" />
		</property -->
		<property type="integer" name="createId">
			<column name="create_id" />
		</property>
		<property type="timestamp" name="createTime">
			<column name="create_time" length="23" />
		</property>
		<property type="integer" name="updateId">
			<column name="update_id" />
		</property>
		<property type="timestamp" name="updateTime">
			<column name="update_time" length="23" />
		</property>
		
		<many-to-one name="integratSysConf" class="cn.firstsoft.modules.integration.domain.IntegratSysConf" fetch="select">
            <column name="integrat_sys_conf_id" />
        </many-to-one>
		<set name="integratSobs" table="integrat_message_sob" lazy="true" inverse="false" cascade="save-update" batch-size="5" >
            <key>
                <column name="message_conf_id" not-null="true"/>
            </key>
            <many-to-many class="cn.firstsoft.modules.integration.domain.IntegratSob" column="sob_id"/>
        </set>
    </class>
</hibernate-mapping>